home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2000 February / Macworld (2000-02).dmg / Cool Extras! / WallBall Screen Saver / WallBall.dxr / 00213_Go to URL.ls < prev    next >
Encoding:
Text File  |  1999-11-11  |  1.5 KB  |  18 lines

  1. property myURL
  2.  
  3. on getBehaviorDescription me
  4.   return "GO TO URL" & RETURN & RETURN & "Drop this behavior onto a Sprite, the Stage or into the Script Channel of the Score to load the designated HTML Page." & RETURN & RETURN & "If you drop it onto a graphic member, the 'gotoNetPage' command is sent when the user clicks on the sprite (on mouseUp)." & RETURN & RETURN & "If you drop it onto the Stage or the Script Channel of the Score, it will be sent when the playback head leaves the frame (on exitFrame)." & RETURN & RETURN & "When called from a Shockwave movie, this behavior replaces the current page displayed in the web browser.  When called from a projector or in authoring mode, it opens a browser to display the requested page." & RETURN & RETURN & "PARAMETERS:" & RETURN & "* Destination URL - Enter the complete URL of the destination page. Include http://"
  5. end
  6.  
  7. on getBehaviorTooltip me
  8.   return "Use with graphic members or as a frame behavior." & RETURN & RETURN & "When called from a Shockwave movie, this behavior" & RETURN & "replaces the current page displayed in the web" & RETURN & "browser.  When called from a projector or in" & RETURN & "authoring mode, it opens a browser to display" & RETURN & "the requested page." & RETURN & RETURN & "Acts on mouseUp or on exitFrame, depending on" & RETURN & "whether you drag it to a sprite or to the Stage."
  9. end
  10.  
  11. on mouseDown me
  12.   gotoNetPage(myURL)
  13. end
  14.  
  15. on getPropertyDescriptionList
  16.   return [#myURL: [#comment: "Destination URL:", #format: #string, #default: "http://www.macromedia.com                  "]]
  17. end
  18.